<template>
  <div class="dashboard_container">
    <div class="bannerPart">
      <div class="left">
        <div class="banner">
          <div class="pic"><img src="@/assets/avatar.png" /></div>
          <div class="text">
            <p>我不是为了输赢，我就是认真！</p>
            <span>—— 罗永浩</span>
          </div>
          <div class="address">北京总仓</div>
        </div>
        <div class="toDoInfo">
          <div class="title">待办信息</div>
          <div class="content">
            <div class="common entry">
              <div class="pic">
                <div class="img" />
                <p>入库单</p>
              </div>
              <div class="text">
                <p>新增<span>3</span></p>
                <p>待审核<span class="color">3</span></p>
              </div>
            </div>
            <div class="common out">
              <div class="pic">
                <div class="img" />
                <p>出库单</p>
              </div>
            </div>
            <div class="common computed">
              <div class="pic">
                <div class="img" />
                <p>盘点单</p>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="right">
        <div class="title">通知/公告</div>
        <li>
          <p>紧急盘点通知</p>
          <span>2020.12.30 18:23:14</span>
        </li>
        <li>
          <p>紧急盘点通知</p>
          <span>2020.12.30 18:23:14</span>
        </li>
        <li>
          <p>紧急盘点通知</p>
          <span>2020.12.30 18:23:14</span>
        </li>
        <li>
          <p>紧急盘点通知</p>
          <span>2020.12.30 18:23:14</span>
        </li>
        <li>
          <p>紧急盘点通知</p>
          <span>2020.12.30 18:23:14</span>
        </li>
      </div>
    </div>
    <div class="navBar">
      <div class="title">任务导航</div>
      <div class="bottom">
        <div class="content">
          <div class="pic"><img src="@/assets/common/exit.png" alt="" /></div>
          <p>收货任务</p>
        </div>
        <div class="content">
          <div class="pic"><img src="@/assets/common/exit.png" alt="" /></div>
          <p>收货任务</p>
        </div>
        <div class="content">
          <div class="pic"><img src="@/assets/common/exit.png" alt="" /></div>
          <p>收货任务</p>
        </div>
        <div class="content">
          <div class="pic"><img src="@/assets/common/exit.png" alt="" /></div>
          <p>收货任务</p>
        </div>
        <div class="content">
          <div class="pic"><img src="@/assets/common/exit.png" alt="" /></div>
          <p>收货任务</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Dashboard'
}
</script>
<style lang="scss" scoped>
.dashboard_container {
  .bannerPart {
    height: 450px;
    width: 100%;
    display: flex;
    .left {
      flex: 1;
      min-width: 949px;
      margin-right: 30px;
      .banner {
        position: relative;
        width: 100%;
        height: 148px;
        background: linear-gradient(270deg, #ffc771, #ffa634);
        box-shadow: 0 0 6px 0 rgb(188 151 69 / 12%);
        border-radius: 12px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        .pic {
          width: 62px;
          height: 62px;
          margin-left: 50px;
          img {
            width: 100%;
            border-radius: 50%;
          }
        }
        .text {
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          font-size: 18px;
          color: #fff;
          line-height: 25px;
          margin-left: 70px;
          span {
            margin-left: 210px;
          }
        }
        .address {
          position: absolute;
          top: 20px;
          right: 20px;
          width: 147px;
          height: 40px;
          background: #f8f5f5;
          border-radius: 6px;
          opacity: 0.79;
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: space-around;
        }
      }
      .toDoInfo {
        width: 100%;
        height: 282px;
        background: #fff;
        box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
        border-radius: 12px;
        padding: 25px 10px;
        .title {
          font-size: 16px;
          font-family: PingFangSC-Semibold, PingFang SC;
          font-weight: 600;
          color: #332929;
          line-height: 22px;
          margin-left: 15px;
        }
        .content {
          display: flex;
          flex-wrap: nowrap;
          margin-top: 20px;
          .common {
            position: relative;
            flex: 1;
            height: 186px;
            background: #fbf7f7;
            border-radius: 8px;
            padding: 20px;
            cursor: pointer;
            margin: 0 15px;
            .pic {
              display: flex;
              align-items: center;
              .img {
                width: 60px;
                height: 60px;
                background-image: url('~@/assets/common/icon.png');
                background-repeat: no-repeat;
                border-radius: 50%;
              }
              p {
                margin-left: 15px;
              }
            }
            &:hover {
              background-color: #fff;
              box-shadow: 1px 1px 5px rgb(233, 232, 232);
            }
            .text {
              display: flex;
              margin-top: 30px;
              p {
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #887e7e;
                margin-right: 10px;
                vertical-align: middle;
                span {
                  font-size: 36px;
                  font-family: DIN-Medium, DIN;
                  font-weight: 500;
                  color: #332929;
                  margin: 0 20px;
                }
              }
            }
          }
          .entry {
            .text .color {
              color: blue;
            }
            .img {
              background-position: -2px -10px;
            }
          }

          .out .img {
            background-position: -227px -10px;
          }

          .computed .img {
            background-position: -470px -10px;
          }
        }
      }
    }
    .right {
      width: 261px;
      height: 451px;
      background: #fff;
      box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
      border-radius: 12px;
      padding: 30px;
      .title {
        font-size: 16px;
        font-family: PingFangSC-Semibold, PingFang SC;
        font-weight: 600;
        color: #332929;
        line-height: 22px;
      }
      li {
        list-style: none;
        width: 200px;
        height: 61px;
        border-top: 0.3px solid rgb(236, 236, 236);
        margin-top: 15px;
        p {
          font-size: 13px;
          color: #333;
        }
        span {
          font-size: 12px;
          color: #887e7e;
        }
      }
    }
  }
  .navBar {
    flex: 1;
    min-width: 1240px;
    height: 188px;
    background: #fff;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    .title {
      font-size: 16px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #332929;
      line-height: 22px;
      margin-left: 15px;
    }
    .bottom {
      display: flex;
      flex-wrap: nowrap;
      .content {
        flex: 1;
        height: 93px;
        background: #fbf7f7;
        border-radius: 8px;
        padding: 20px;
        cursor: pointer;
        margin: 0 15px;
        display: flex;
        align-items: center;
        .pic img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        p {
          width: 64px;
          font-size: 16px;
          margin-left: 15px;
        }

        &:hover {
          background-color: #fff;
          box-shadow: 1px 1px 5px rgb(233, 232, 232);
        }
      }
    }
  }
}
</style>
